#region History

/* --------------------------------------------------------------------------------
 * Client Name: Bd Market Ltd.
 * Project Name: BdMarket
 * Module: App.Web.ViewModels 
 * Name: TransactionDetail.cs
 * Purpose: ViewModel class for Transaction Detail
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  01/21/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace App.Web.ViewModels
{
    [Serializable]
	public class TransactionDetailViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}

        [Required(ErrorMessage= "Please Select a Transaction ID")] 
        [Display(Name = "Transaction ID")] 
        public int TransactionID { get; set;}

        [Required(ErrorMessage = "Please Select a Transaction Detail ID")]
        [Display(Name = "Transaction Detail ID")]
        public int TransactionDetailID { get; set; }


        [Required(ErrorMessage= "Please Select a Product")] 
        [Display(Name = "Product ID")] 
        public int ProductID { get; set;}
            
        [Display(Name = "Receive Quantity")] 
		public String ReceiveQuantity	{ get; set; }
            
        [Display(Name = "Issue Quantity")] 
		public String IssueQuantity	{ get; set; }
            
        [Display(Name = "Unit Price")] 
		public String UnitPrice	{ get; set; }
        //[Display(Name = "Uom I D")] 
        //public int UomID { get; set;}

        [Display(Name = "Current Stock Quantity")]
        public String CurrentStockQuantity { get; set; }

        [Display(Name = "Physical Stock Quantity")]
        public String PhysicalStockQuantity { get; set; }
            
        [StringLength(30, ErrorMessage = "The {0} can be maximum {2} characters long.")]
        [Display(Name = "Item Quality")] 
		public String ItemQuality	{ get; set; }
            
        [StringLength(200, ErrorMessage = "The {0} can be maximum {2} characters long.")]
        [Display(Name = "Description")] 
		public String Description	{ get; set; }

        [Display(Name = "Sale Price")]
        public String SalePrice { get; set; }

        [Required(ErrorMessage = "Please Choose, has this Transaction Posted?")]
        [Display(Name = "Has Posted")]
        public String HasPosted { get; set; }

        [Required(ErrorMessage = "Please Enter a Created On")]
        [Display(Name = "Created On")]
        public String CreatedOn { get; set; }

        [Required(ErrorMessage = "Please Enter a Createb By")]
        [Display(Name = "Createb By")]
        public String CreatebBy { get; set; }

        [Required(ErrorMessage = "Please Enter a Modified On")]
        [Display(Name = "Modified On")]
        public String ModifiedOn { get; set; }

        [Required(ErrorMessage = "Please Enter a Modified By")]
        [Display(Name = "Modified By")]
        public String ModifiedBy { get; set; }
	}
}

